---
title: "| README before the Replication of \n 'Nonverbal Communication of Partisan Conflict'"
author: "Mathias Rask & Frederik Hjorth"
date: "June 19, 2025"
format:
  pdf:
    toc: true
    number-sections: true
    colorlinks: true
---

## Introduction

This `README` file contains information about how to produce the figures and tables in "Nonverbal Communication of Partisan Conflict" (Rask and Hjorth, 2025).
All code is executed using `R`. To ensure that all paths are set correctly, we encourage readers to open the `nonverbal-conflict-replication.Rproj` project. 


## R Environment

This code was last tested and run on June 19, 2025.

```{r}
#| echo: false
version
```

## Dataverse Structure

-   `nonverbal-conflict-replication.Rproj` - RStudio Project file, sets all paths correctly.

-   `README.qmd` - `.qmd` file, provides an introduction to the dataverse.

-   `README.pdf` - `.pdf` file, produced from `README.qmd`. 

-   `replication.R` - `.R` file, produces all tables and figures. 

-   `replication-tables.qmd` - `.qmd` file, gathers all tables produced in `replication.R`

-   `replication-tables.pdf` - `.pdf` file, produced from `replication-tables.qmd`

-   `/data` - folder containing all data (`main.rds`, `validation1.rds`, `validation2.rds`, `votes.rds`, `afinn.rds`) necessary to replicate the results. 

-   `/figures/main` - folder generated in `replication.R` to hold save all figures appearing in main text.

-   `/figures/appendix` - folder generated in `replication.R` to hold save all figures appearing in appendix.

-   `/tables` - folder generated in `replication.R` to hold save all tables appearing in appendix.


## Questions
If you run into questions while replicating the results contact Mathias Rask (mathiasrask@ps.au.dk)